import { S } from '../../s';
import { IPSDECMSeperatorItem } from './ipsdecmseperator-item';
import { IPSDETBSeperatorItem } from './ipsdetbseperator-item';
import { PSDEToolbarItemImpl } from './psdetoolbar-item-impl';
import { IPSLanguageRes } from '../../res/ipslanguage-res';
import { IPSSysCss } from '../../res/ipssys-css';
import { IPSSysImage } from '../../res/ipssys-image';

export class PSDETBSeperatorItemImpl
  extends PSDEToolbarItemImpl
  implements IPSDETBSeperatorItem, IPSDECMSeperatorItem
{
  protected cappslanguageres: IPSLanguageRes;
  getCapPSLanguageRes(): IPSLanguageRes | null {
    return (
      this.cappslanguageres ||
      (this.cappslanguageres = this.fillObjectModel(
        S._276,
        this.M.getCapPSLanguageRes,
        S._2a8,
      ) as IPSLanguageRes)
    );
  }

  get caption(): string {
    return this.M.caption;
  }

  protected pssyscss: IPSSysCss;
  getPSSysCss(): IPSSysCss | null {
    return (
      this.pssyscss ||
      (this.pssyscss = this.fillObjectModel(
        S._278,
        this.M.getPSSysCss,
        S._2ac,
      ) as IPSSysCss)
    );
  }

  protected pssysimage: IPSSysImage;
  getPSSysImage(): IPSSysImage | null {
    return (
      this.pssysimage ||
      (this.pssysimage = this.fillObjectModel(
        S._27b,
        this.M.getPSSysImage,
        S._2ad,
      ) as IPSSysImage)
    );
  }

  get tooltip(): string {
    return this.M.tooltip;
  }

  get showCaption(): boolean {
    return this.M.showCaption;
  }

  get showIcon(): boolean {
    return this.M.showIcon;
  }

  get spanMode(): boolean {
    return this.M.spanMode;
  }
  get cls(): string {
    return 'PSDETBSeperatorItemImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._1a6 || cls == S._1a7) return true;
    return super.instanceof(cls);
  }
}
